﻿using System;

namespace TextEditor
{
    

    public class A_EnableKBSection : A_Action
    {
        public override string ActionName()
        {
            return "enablekbsection";
        }

        public override int CheckState()
        {
            return (ZYKBBuffer.Instance.EnableKBSection ? 1 : 0);
        }

        public override bool Execute()
        {
            ZYKBBuffer.Instance.EnableKBSection = base.Param1 == "1";
            return true;
        }
    }
}

